Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added jre17AgentMainPreMainPublic recipes #296

Merged
merged 3 commits into from
Sep 18, 2023

Conversation

cjobinabo
Copy link
Contributor

What's changed?

Screenshot 2023-09-18 at 2 17 45 PM

What's your motivation?

Anything in particular you'd like reviewers to focus on?

Anyone you would like to review specifically?

@timtebeek @joanvr

Have you considered any alternatives or workarounds?

Any additional context

Checklist

  • I've added unit tests to cover both positive and negative cases
  • I've added the license header to any new files through ./gradlew licenseFormat
  • I've used the IntelliJ IDEA auto-formatter on affected files

@cjobinabo cjobinabo self-assigned this Sep 18, 2023
Copy link
Contributor

@timtebeek timtebeek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect!

@@ -36,6 +36,7 @@ recipeList:
- org.openrewrite.java.migrate.DeprecatedJavaxSecurityCert
- org.openrewrite.java.migrate.DeprecatedLogRecordThreadID
- org.openrewrite.java.migrate.RemovedLegacySunJSSEProviderName
- org.openrewrite.java.migrate.jre17AgentMainPreMainPublic
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- org.openrewrite.java.migrate.jre17AgentMainPreMainPublic
- org.openrewrite.java.migrate.Jre17AgentMainPreMainPublic

@@ -89,3 +90,23 @@ recipeList:
- org.openrewrite.java.ChangeMethodName:
methodPattern: java.util.logging.LogRecord setThreadID(int)
newMethodName: setLongThreadID
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.migrate.jre17AgentMainPreMainPublic
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
name: org.openrewrite.java.migrate.jre17AgentMainPreMainPublic
name: org.openrewrite.java.migrate.Jre17AgentMainPreMainPublic

type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.migrate.jre17AgentMainPreMainPublic
displayName: Set visibility of `premain` and `agentmain` methods to `public`
description: Check for a behavior change in Java agents
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
description: Check for a behavior change in Java agents
description: Check for a behavior change in Java agents.

@timtebeek timtebeek added the recipe Recipe requested label Sep 18, 2023
@timtebeek timtebeek merged commit 4fbf1bd into openrewrite:main Sep 18, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
recipe Recipe requested
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants